<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>

    <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css" />
  </head>

  <body>
    <!-- dom -->
    <div id="app">
      <div>
        <h1>Root</h1>
        <bs-button type="primary"></bs-button>
        <bs-button type="danger"></bs-button>
        <bs-button type="info"></bs-button>
      </div>
    </div>
    <script type="module">
      import { createApp, ref } from "./vue.esm-browser.js";
      // 1.导入组件对象
      import BsButton from "./components/BsButton.js";

      const html = String.raw;
      // <root>
      const app = createApp({
        setup() {
          return {};
        },
      });

      // 2 注册组件
      app.component("BsButton", BsButton);

      // <BsButton>
      // BsButton();

      app.mount("#app"); //挂载
    </script>
  </body>
</html>
